package com.bignippleboy.recordthelife;

import java.util.ArrayList;

import android.graphics.Bitmap;

import com.bignippleboy.recordthelife.constants.Constants;

public class LifeRecordManager {
	private static LifeRecordManager lifeRecordManager;
	PhotoManager pManager = PhotoManager.getInstance();
	AudioManager aManager = AudioManager.getInstance();

	private ArrayList<LifeRecordItem> mLifeRecords = new ArrayList<LifeRecordItem>();

	public ArrayList<LifeRecordItem> getmLifeRecords() {
		return mLifeRecords;
	}

	public void setmLifeRecords(ArrayList<LifeRecordItem> mLifeRecords) {
		this.mLifeRecords = mLifeRecords;
	}

	public static LifeRecordManager getInstance() {
		if (lifeRecordManager == null)
			lifeRecordManager = new LifeRecordManager();
		return lifeRecordManager;
	}

	public void newItem() {
		LifeRecordItem item = new LifeRecordItem();
		Constants.setItem(item);
	}

	public String savePicture(Bitmap bm) {
		return pManager.savePicture(bm);
	}

	public String saveAudio(String audio) {
		return aManager.saveAudio(audio);
	}
}
